def triungle(n):
    l=[1]
    m=0
    while m<n:
        print(l)
        l=[l[x]+l[x+1] for x in range(len(l)-1)]
        l.insert(0, 1)
        l.append(1)
        m +=1

triungle(10)
